<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>案例-卡片</title>
    <style>
        div {
            width: 250px;
            border: 1px solid rgb(145, 141, 141);
            padding: 15px;
            margin: 50px auto;
            transition: transform 0.3s ease;
            /* 添加过渡效果使变换更平滑 */
        }

        img {
            width: 100%;
        }

        div:hover {
            transform: skew(-10deg, 10deg);
        }

        .p2 {
            color: #000000;
        }
    </style>
</head>

<body>
    <div>
        <img src="https://www.loliapi.com/acg/pp/">
        <p>
        <h1>头像</h1>
        </p>
        <p class="p2">这是一个可爱的头像。</p>
    </div>
</body>

</html>